import Vue from 'vue'
import 'lib-flexible'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import 'utils/permission'
import SvgIcon from 'components/SvgIcon'
import '@/icons' // icon
import '@/style/common.scss'
// 引入i18n
import i18n from '@/lang/index'
import defaultSettings from '@/settings'
import axios from 'axios'
// 基本配置
import Router from 'vue-router'
/**
 * If you don't want to use mock-server
 * you want to use MockJs for mock api
 * you can execute: mockXHR()
 *
 * Currently MockJs will be used in the production environment,
 * please remove it before going online! ! !
 */
import '@/vantui'
import { Cell, CellGroup, Stepper, Dialog, Icon, Overlay, Switch, Toast, Badge, ShareSheet, NoticeBar, Search, Popup, ActionSheet, Lazyload, Calendar, CountDown, Step, Steps, PasswordInput, NumberKeyboard } from 'vant'
import 'vant/lib/index.less'
Vue.use(Router)
// 引入
import * as echarts from "echarts"
// 注册
Vue.prototype.$echarts = echarts
//引入ios
import Bridge from '@/utils/bridge.js'
Vue.prototype.$bridge = Bridge
// options 为可选参数，无则不传
import http from '@/utils/requestimg'
Vue.component('svg-icon', SvgIcon)
Vue.prototype.$http = http
// if (process.env.NODE_ENV === 'development' && defaultSettings.vconsole) {
//   const VConsole = require('vconsole')
//   // eslint-disable-next-line
//   const my_console = new VConsole()
// }
// const VConsole = require('vconsole')
// eslint-disable-next-line
// const my_console = new VConsole()
import Loading from '@/utils/loading.js'
Vue.use(Loading);
Vue.config.productionTip = false
import '../src/assets/font/index.css'
import tool from "@/utils/tools";
Vue.use(tool);
import VueScroller from 'vue-scroller'
Vue.use(VueScroller)
new Vue({
  router,
  store,
  i18n,
  echarts,
  render: h => h(App)
}).$mount('#app')
function goChangeimage(){
  localStorage.setItem('goChangeimage','1')
}
